package com.example;

/**
 * Copyright (C), 2019-2019, 成都飞酷科技有限公司
 * FileName: PostController
 * Author:   linrui
 * Date:     2021年09月14日 12:22
 * Description: CustomerRepository
 * History:
 * <author>          <time>          <version>          <desc>
 * linrui           12:22         版本号              描述
 */
import java.util.List;

import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

@RepositoryRestResource(collectionResourceRel = "customer", path = "customer")
public interface CustomerRepository extends CrudRepository<Customers, Long> {

    List<Customers> findByLastName(@Param("name") String name);

}